package com.weita.lightfood.model.dao;


import com.weita.lightfood.model.entity.HistoryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author IT_Monster at 2019/04/24 15:18.
 * 历史订单
 */
@Mapper
@Repository
public interface HistoryOrderDao {
    /**
     * 根据日期获取一日三餐菜品id
     * @param date
     * @return
     * @throws Exception
     */
    HistoryOrder getDishesIdByDate(String date) throws Exception;

    /**
     * 根据日期更新发布的菜品
     * @param date
     * @param dishId
     * @param state
     * @throws Exception
     */
    void updateHistoryOrder(String date, int dishId, int state) throws Exception;


    /**
     * 插入对应日期的菜品计划
     * @param date
     * @param dishId
     * @param state
     * @throws Exception
     */
    void insertHistoryOrder(String date, int dishId, int state) throws Exception;

}
